package com.potenza.training.reply.feign;

import com.potenza.training.reply.entity.SubjectDifficultyEntity;
import com.potenza.training.reply.entity.SubjectTypeEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "potenza-training-dictionary")
public interface SubjectFegin {

    @GetMapping("hope/reply/subjecttype/info")
    public SubjectTypeEntity findAllByName(@RequestParam String subjectType);

    @GetMapping("hope/reply/subjecttype/findByPid/{pid}")
    public List<SubjectTypeEntity> findTypeByPid(@PathVariable int pid);

    @GetMapping("hope/reply/subjectdifficulty/findByPid/{pid}")
    public List<SubjectDifficultyEntity> findDifficultyByPid(@PathVariable int pid);
}
